import { defineStore } from "pinia";
// 用户的类型声明文件
const test = defineStore("test", {
    state() {
        return {
            userName: '甲庚农七一一',
        };
    },
    getters: {
        getUserName(state) {
            return state.userName.split("").reverse().join("");
        }
    },
    actions: {
        setCount(data) {
          this.userName = data.split("").reverse().join("")
        }
    }
});
export default test